﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageSandboxSolutions.aspx.cs"
    Inherits="CKS.Sandbox.Admin.Layouts.CKS.Sandbox.Admin.ManageSandboxSolutions" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <style type="text/css">
        .system
        {
            width: 500px;
        }
        
        .clear
        {
            clear: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <div style="margin: 10px; padding: 10px;">
        <div style="position: relative; height: 70px;">
            <div style="float: left;">
                <img src="/_layouts/images/CKS.Sandbox.Admin/CKS_Logo_full.gif" alt="Community Kit for SharePoint" />
            </div>
            <div style="float: left; padding-left: 10px;">
                <h2>
                    CKS:Sandbox - Manage Sandbox Solutions</h2>
            </div>
            <div style="clear: left;">
                &nbsp;</div>
        </div>

        <h3>Sandbox Solutions</h3>
        
        <SharePoint:SPGridView ID="grdSolutions" runat="server" 
            AllowGrouping="true" AllowGroupCollapse="true" 
            GroupField="SiteCollectionHeader" GroupFieldDisplayName="Site Collection"
            RowStyle-Height="40px"
            AutoGenerateColumns="false" >
            <Columns>
                <asp:BoundField DataField="SiteCollectionHeader" SortExpression="SiteCollectionHeader" Visible="false" ItemStyle-Wrap="false" HtmlEncode="true" />
                <asp:BoundField DataField="SiteCollectionUrl" SortExpression="SiteCollectionUrl" Visible="false" ItemStyle-Wrap="false" HtmlEncode="true" />
                <asp:HyperLinkField DataTextField="SolutionName" HeaderText="Solution" DataNavigateUrlFields="SiteCollectionUrl" DataNavigateUrlFormatString="{0}/_catalogs/solutions" />
                <asp:BoundField DataField="SolutionID" SortExpression="SolutionID" HeaderText="Solution ID" ItemStyle-Wrap="false" HtmlEncode="true" />
                <asp:BoundField DataField="SolutionTitle" SortExpression="SolutionTitle" HeaderText="Title" ItemStyle-Wrap="false" HtmlEncode="true" />
                <asp:BoundField DataField="SolutionDescription" SortExpression="SolutionDescription" HeaderText="Description" ItemStyle-Wrap="true" HtmlEncode="true" />
                <asp:BoundField DataField="SolutionStatus" SortExpression="SolutionStatus" HeaderText="Status" ItemStyle-Wrap="false" HtmlEncode="true" />
                <asp:BoundField DataField="SolutionResourceQuota" SortExpression="SolutionResourceQuota" HeaderText="Resource Usage" ItemStyle-Wrap="false" HtmlEncode="true" />
            </Columns>

        </SharePoint:SPGridView>

    </div>
</asp:Content>
<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    CKS:Sandbox - Manage Sandbox Solutions
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    CKS:Sandbox - Manage Sandbox Solutions
</asp:Content>
